package nmt.banweb.client;

import nmt.banweb.shared.UIUserObject;

public class CourseCourse {
	/* Contains the header name for each column (eg Conflicts, Select, CRN, Course, *Campus, Days, Time, Location, Hrs, Title, Instructor, Seats, Limit, Enroll)
	 * This object is accessed by a lot of things.
	 * Please, as methods are written that access this object, back-reference to them, here.
	 */
	static String[] DataColumn;
	public static int GetDataColumnLength()
	{
		return DataColumn.length;
	}
	public static String GetDataColumn(int index)
	{
		return DataColumn[index];
	}
	public static String[] GetDataColumns()
	{
		String[] dup = null;
		/* todo: create a duplicate of DataColumn and return it */
		return dup;
	}
	
	boolean blacklisted;
	boolean selected;
	/* organized in the same order as DataColumn */
	String[] content;
	
	CourseCourse(String[] data)
	{
	}
	
	public Boolean IsBlacklisted()
	{
		return blacklisted;
	}
	public Boolean IsSelected()
	{
		return selected;
	}
	
	public void blacklist(boolean doBlacklist)
	{
		blacklisted = doBlacklist;
	}
	public void select(boolean doSelect)
	{
		selected = doSelect;
	}
	
	/**
	 * Checks for time conflicts against all of the user's other classes.
	 * @param User The user object, which contains a list of all of the user's selected classes.
	 * @return An array of courses that have time conflicts with this course.
	 */
	public CourseCourse[] Conflicts(UIUserObject User)
	{
		return null;
	}
}
